package parserUML;


/**
 * 
 */
import java.util.*;
/**
 * @author Guillaume Chapuis
 *
 */
public abstract class JavaObject extends Constants{
	
	public boolean visible;
	/**
	 * Name of the JavaObject
	 */
	private String name;
	
	/**
	 * @return the name of the object
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * List of the modifiers of the object
	 */
	public ArrayList<String> modifiers;
 	
	public JavaObject (String sName){
		name=sName;
		visible = true;
		modifiers = new ArrayList<String>();
	}

	@Override
	public boolean equals(Object arg0) {
		return name.equals(((JavaObject)arg0).getName());
	}

	@Override
	public int hashCode() {
		return name.hashCode();
	}
	
	
}
